#遍历集合
names =['bob','tom','jack']
for name in names:
    print(name)
	
#打印1~10的和
sum =0
for i in [1,2,3,4,5,6,7,8,9,10]:
    sum = sum + i
    
print('sum = ',sum)

#打印1~100的和,range(10):0~10
sum =0
for i in range(101):
    sum = sum +i
print(sum)